home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TUTORC.ZIP
/
TCCFILES.ZIP
/
TCHEADR.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-30
|
2KB
|
62 lines
/*
tutheadr.h
10/30/94
SCP
Adapted from tutprog4.pas, translated into C.
header file for the Turbo C version of the wormie program
*/
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <math.h>
#include <conio.h>
#include <graphics.h>
#include <bios.h>
#include <string.h>
#define VGA 0xa000
#define PI (float) 3.14159
struct Point
{
float x;
float y;
float z;
};
char Virtual[(unsigned)64000]; // Virtual Screen.
char Virtual2[(unsigned)64000]; // Virtual Screen.
char far* VirtPtr;
char far* VirtPtr2;
unsigned int Vaddr;
unsigned int Vaddr2;
char Pall[256][3];
char Pall2[256][3];
void SetMCGA();
void SetText();
void WaitRetrace();
void GetPal(char ColorNo, char* R, char* G, char* B);
void Pal(char ColorNo, char R, char G, char B);
void PutPixel(int X, int Y, char Color, int Where);
void Line(int x1, int y1, int x2, int y2, unsigned char Color);
void Line2(int x1, int y1, int x2, int y2, unsigned char Color, int where);
void Funny_Line(int x1, int y1, int x2, int y2, int Where);
void PalPlay();
void rotatepal(char locpal[][3], int start, int end);
void GrabPallette();
void Blackout();
void FadeUp();
void FadeDown();
void RestorePallette();
void Cls(char Color, int Where);
void Flip();
void Flip2(int Source, int Dest);
// int random(int x);
float rad(float theta);
int round(float x);
void SetUpVirtual();
void Hline(int x1, int x2, int y, char col, int where);
void PutPixel2(int x, int y, char col, int where);